Text File | 1995-03-11 | 689 b | 9 lines | [TEXT/ttxt]
Here is a handly function for performing a dynamic check for the existence of a RAM disk as created by Apple's Memory control panel. I use it in some of my programs when speed is paramount. Since the user can remove the RAM disk at any time by turning it off from the Memory control panel, and can rename it at any time, the code here needs to be called before assuming the existence of a RAM disk. In other words, don't just check once during your application startup and assume thereafter that it will still be there, check ideally before each access. Program defensively...